package cn.gson.fengboot.model.pojos;

import javax.persistence.*;
import java.math.BigDecimal;
import java.sql.Timestamp;
import java.util.Objects;

@Entity
public class Zreturnedmoneylog {
    private int returnedmoneylogId;//回款记录id
    private Zreturnedmoney returnedmoneyId;//回款计划
    private TfyclientForm clientId;//客户id
    private String returnedmoneylogTheme;//主题
    private BigDecimal returnedmoneylogMoney;//金额
    private Timestamp returnedmoneylogTime;//时间
    private String returnedmoneylogIssue;//期次
    private String returnedmoneylogPayment;//付款方式
    private String returnedmoneylogRefund;//是回款还是退款
    private String returnedmoneylogBuck;//外币备注
    private BigDecimal returnedmoneylogRate;//汇率
    private String returnedmoneylogInvoice;//是否开票
    private String returnedmoneylogRemark;//备注
    private Integer returnedmoneylogZt;//状态
    private String returnedmoneylogOwner;//所有者
    private String returnedmoneylogAccessory;//附件

    @Id
    @Column(name = "returnedmoneylog_id")
    public int getReturnedmoneylogId() {
        return returnedmoneylogId;
    }

    public void setReturnedmoneylogId(int returnedmoneylogId) {
        this.returnedmoneylogId = returnedmoneylogId;
    }

    @ManyToOne
    @JoinColumn(name = "returnedmoney_id", referencedColumnName = "returnedmoney_id")
    public Zreturnedmoney getReturnedmoneyId() {
        return returnedmoneyId;
    }

    public void setReturnedmoneyId(Zreturnedmoney returnedmoneyId) {
        this.returnedmoneyId = returnedmoneyId;
    }

    @Basic
    @Column(name = "returnedmoneylog_invoice")
    public String getReturnedmoneylogInvoice() {
        return returnedmoneylogInvoice;
    }

    public void setReturnedmoneylogInvoice(String returnedmoneylogInvoice) {
        this.returnedmoneylogInvoice = returnedmoneylogInvoice;
    }

    @ManyToOne
    @JoinColumn(name = "client_id", referencedColumnName = "client_id")
    public TfyclientForm getClientId() {
        return clientId;
    }

    public void setClientId(TfyclientForm clientId) {
        this.clientId = clientId;
    }

    @Basic
    @Column(name = "returnedmoneylog_zt")
    public Integer getReturnedmoneylogZt() {
        return returnedmoneylogZt;
    }

    public void setReturnedmoneylogZt(Integer returnedmoneylogZt) {
        this.returnedmoneylogZt = returnedmoneylogZt;
    }

    @Basic
    @Column(name = "returnedmoneylog_theme")
    public String getReturnedmoneylogTheme() {
        return returnedmoneylogTheme;
    }

    public void setReturnedmoneylogTheme(String returnedmoneylogTheme) {
        this.returnedmoneylogTheme = returnedmoneylogTheme;
    }

    @Basic
    @Column(name = "returnedmoneylog_money")
    public BigDecimal getReturnedmoneylogMoney() {
        return returnedmoneylogMoney;
    }

    public void setReturnedmoneylogMoney(BigDecimal returnedmoneylogMoney) {
        this.returnedmoneylogMoney = returnedmoneylogMoney;
    }

    @Basic
    @Column(name = "returnedmoneylog_time")
    public Timestamp getReturnedmoneylogTime() {
        return returnedmoneylogTime;
    }

    public void setReturnedmoneylogTime(Timestamp returnedmoneylogTime) {
        this.returnedmoneylogTime = returnedmoneylogTime;
    }

    @Basic
    @Column(name = "returnedmoneylog_issue")
    public String getReturnedmoneylogIssue() {
        return returnedmoneylogIssue;
    }

    public void setReturnedmoneylogIssue(String returnedmoneylogIssue) {
        this.returnedmoneylogIssue = returnedmoneylogIssue;
    }

    @Basic
    @Column(name = "returnedmoneylog_owner")
    public String getReturnedmoneylogOwner() {
        return returnedmoneylogOwner;
    }

    public void setReturnedmoneylogOwner(String returnedmoneylogOwner) {
        this.returnedmoneylogOwner = returnedmoneylogOwner;
    }

    @Basic
    @Column(name = "returnedmoneylog_payment")
    public String getReturnedmoneylogPayment() {
        return returnedmoneylogPayment;
    }

    public void setReturnedmoneylogPayment(String returnedmoneylogPayment) {
        this.returnedmoneylogPayment = returnedmoneylogPayment;
    }

    @Basic
    @Column(name = "returnedmoneylog_accessory")
    public String getReturnedmoneylogAccessory() {
        return returnedmoneylogAccessory;
    }

    public void setReturnedmoneylogAccessory(String returnedmoneylogAccessory) {
        this.returnedmoneylogAccessory = returnedmoneylogAccessory;
    }

    @Basic
    @Column(name = "returnedmoneylog_refund")
    public String getReturnedmoneylogRefund() {
        return returnedmoneylogRefund;
    }

    public void setReturnedmoneylogRefund(String returnedmoneylogRefund) {
        this.returnedmoneylogRefund = returnedmoneylogRefund;
    }

    @Basic
    @Column(name = "returnedmoneylog_buck")
    public String getReturnedmoneylogBuck() {
        return returnedmoneylogBuck;
    }

    public void setReturnedmoneylogBuck(String returnedmoneylogBuck) {
        this.returnedmoneylogBuck = returnedmoneylogBuck;
    }

    @Basic
    @Column(name = "returnedmoneylog_rate")
    public BigDecimal getReturnedmoneylogRate() {
        return returnedmoneylogRate;
    }

    public void setReturnedmoneylogRate(BigDecimal returnedmoneylogRate) {
        this.returnedmoneylogRate = returnedmoneylogRate;
    }

    @Basic
    @Column(name = "returnedmoneylog_remark")
    public String getReturnedmoneylogRemark() {
        return returnedmoneylogRemark;
    }

    public void setReturnedmoneylogRemark(String returnedmoneylogRemark) {
        this.returnedmoneylogRemark = returnedmoneylogRemark;
    }

    @Override
    public String toString() {
        return "Zreturnedmoneylog{" +
                "returnedmoneylogId=" + returnedmoneylogId +
                ", returnedmoneyId=" + returnedmoneyId +
                ", clientId=" + clientId +
                ", returnedmoneylogTheme='" + returnedmoneylogTheme + '\'' +
                ", returnedmoneylogMoney=" + returnedmoneylogMoney +
                ", returnedmoneylogTime=" + returnedmoneylogTime +
                ", returnedmoneylogIssue='" + returnedmoneylogIssue + '\'' +
                ", returnedmoneylogPayment='" + returnedmoneylogPayment + '\'' +
                ", returnedmoneylogRefund='" + returnedmoneylogRefund + '\'' +
                ", returnedmoneylogBuck='" + returnedmoneylogBuck + '\'' +
                ", returnedmoneylogRate=" + returnedmoneylogRate +
                ", returnedmoneylogInvoice='" + returnedmoneylogInvoice + '\'' +
                ", returnedmoneylogRemark='" + returnedmoneylogRemark + '\'' +
                ", returnedmoneylogZt=" + returnedmoneylogZt +
                ", returnedmoneylogOwner='" + returnedmoneylogOwner + '\'' +
                ", returnedmoneylogAccessory='" + returnedmoneylogAccessory + '\'' +
                '}';
    }
}
